package cn.cttic.link.dubbo;

import cn.cttic.link.api.RemoteThirdInterfaceService;
import cn.cttic.link.api.domain.BaseThirdInterface;
import cn.cttic.link.api.domain.vo.BaseThirdInterfaceVo;
import cn.cttic.link.mapper.BaseThirdInterfaceMapper;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService
@Slf4j
@RequiredArgsConstructor
public class RemoteThirdInterfaceServiceImpl implements RemoteThirdInterfaceService {

    private final BaseThirdInterfaceMapper baseThirdInterfaceMapper;

    /**
     * 获取接口数据
     *
     * @param id 接口序列ID
     * @return
     */
    @Override
    public BaseThirdInterfaceVo getThirdInterfaceById(String id) {
        return baseThirdInterfaceMapper.selectVoById(id);
    }
}
